#include "Node_operation.h"

Node_operation::Node_operation(void)
{}

Node_operation::~Node_operation(void)
{}

Node_operation::Node_operation(const string & data, const unsigned int & id, const Nodetype & type, const unsigned short & arity)
{
	Data = data;
	ID = id;
	Type = type;
	Arity = arity;
}

vector<Node *>& Node_operation::GetChilds()
{
	return Childs;
}

const unsigned short& Node_operation::GetArity() const
{
	return Arity;
}

void Node_operation::operator=(Node_operation& other)
{
	Data = other.GetData();
	ID = other.GetID();
	Type = other.GetNodetype();
	Arity = other.GetArity();
	Childs = other.GetChilds();
}